const data : any [] = (function () : any [] {
    const d : any [] = [];
    let i : number = 0;
    let k ! : string;
    for (; i < 10; i ++) {
        k = (i < 5 ? '0' : '') + i;
        d.push ({
            key : k,
            value : String (Math.random ())
        });
    }
    return d;
}
())
console.log (data);
